﻿using System;
using YunZuan.Models.Attributes;
using YunZuan.Models.Entities;

namespace YunZuan.Models
{
    [Table(TableName = "yz_scene", PrimaryKey = "ID")]
    public class Scene: BaseEntity
    {
        #region Model
        private int _id;
        /// <summary>
        ///序号，主键
        /// </summary>
        public int ID
        {
            get { return _id; }
            set { this.ChangeNotify<int>("ID", value, ref _id); }
        }
        private int _sceneval;
        /// <summary>
        ///场景值
        /// </summary>
        public int SceneVal
        {
            get { return _sceneval; }
            set { this.ChangeNotify<int>("SceneVal", value, ref _sceneval); }
        }
        private string _scenecontent;
        /// <summary>
        ///场景说明
        /// </summary>
        public string SceneContent
        {
            get { return _scenecontent; }
            set { this.ChangeNotify<string>("SceneContent", value, ref _scenecontent); }
        }
        private decimal _calcval;
        /// <summary>
        ///计算值
        /// </summary>
        public decimal CalcVal
        {
            get { return _calcval; }
            set { this.ChangeNotify<decimal>("CalcVal", value, ref _calcval); }
        }
        private int _calctype = -1;
        /// <summary>
        ///计算类型(0直接价格，1,退点，2倍率)
        /// </summary>
        public int CalcType
        {
            get { return _calctype; }
            set { this.ChangeNotify<int>("CalcType", value, ref _calctype); }
        }
        private DateTime? _AddTime;
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? AddTime
        {
            get { return _AddTime; }
            set { this.ChangeNotify<DateTime?>("AddTime", value, ref _AddTime); }
        }
        #endregion

    }
}
